

import java.util.*;
import java.text.*;
import java.time.LocalDate;
import java.time.Period;

public class HowOld2 {
    public static void main(String[] args) throws Exception {
        System.out.print("输入出生年月日（yyyy-mm-dd）：");
        LocalDate birth = LocalDate.parse(new Scanner(System.in).nextLine());
        LocalDate now = LocalDate.now();
        Period period = Period.between(birth, now);
        Date current = new Date();

        System.out.printf("你活了 %d 年 %d 月 %d 日%n：" ,period.getYears(),period.getMonths(),period.getDays());
    }
}